package com.study.service;

import com.study.dao.RoleDao;
import com.study.domain.Role;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by think on 2016/7/28.
 */
@Service
public class RoleService {
    @Resource
    private RoleDao roleDao;

    public List<Role> getRoles(int id){
       return roleDao.getRoles(id);
    }
}
